* {
    padding: 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
}

body {
    background-color: aliceblue;
}

.login-container {
    margin: 100px auto;
    width: 400px;
    /* display: none; */
}

.loginDiv {
    width: 300px;
    border: 1px solid gray;
    margin-top: 10px;
}

#username {
    width: 100%;
    height: 30px;
    line-height: 30px;
    padding-left: 10px;
    border: 1px solid gray;
}

#joinBtn {
    width: 100%;
    height: 30px;
    line-height: 30px;
    background-color: aquamarine;
    margin-top: 10px
}

.chooseavatar {
    font-size: 12px;
    margin: 5px;
}

.avatarUl {
    border: 1px solid gray;
    display: flex;
    justify-content: space-around;
    align-content: space-around;
    flex-wrap: wrap;
}

.avatarUl img {
    width: 33%;
    cursor: pointer;
}

.imgBorder {
    border: 1px solid gray;
}

.chat-container {
    margin: 0 auto;
    width: 800px;
    border: 1px solid gray;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    display: none;
}

.chat-title {
    height: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid gray;
}

.chat-content {
    border: 1px solid gray;
    display: flex;
    justify-content: space-between;
}

.userDiv {
    width: 20%;
    padding-left: 10px;
    height: 450px;
    overflow-y: auto;
}

.userDiv img {
    width: 30px;
    border-radius: 50%;
    border: 1px solid orangered
}

.otherUserInfo div {
    margin-top: 5px;
}

img {
    vertical-align: middle;
}

.myInfo {
    padding: 5px 0;
}

.myInfo .username {
    color: orangered
}

.chatDiv {
    border: 1px solid gray;
    font-size: 10px;
    padding: 5px;
    width: 100%;
    height: 450px;
    padding-bottom: 20px;
    overflow-y: auto;
}

.chatDiv>div {
    margin-top: 10px;
}

.on,
.leave {
    margin: 5px auto;
    text-align: center;
    color: #ccc;
}

.ortheruserchat {
    text-align: left;
}

.mychat {
    text-align: right;
}

.ortheruserchat,
.mychat {
    display: flex;
    align-items: flex-start;
}

.ortheruserchat .avatar,
.mychat .avatar {
    width: 30px;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid #fff;
}

.ortheruserchat .dataImg,
.mychat .dataImg {
    max-width: 200px;
    border-radius: 10px;
    border: 1px solid #fff;
}

.right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.chatDiv .username {
    font-size: 6px;
    color: #000;
    font-weight: 700;
}

.mychat {
    justify-content: flex-end;
}

.mychat .msg {
    text-align: left;
}

.msg {
    color: blue;
    font-size: 10px;
    padding: 5px;
    background-color: #fff;
    border-radius: 3px;
    margin-top: 5px;
}

.ortheruserchat .left,
.mychat .left {
    margin-right: 5px
}

.chat-input {
    display: flex;
}

#inputVal,
#sendContentBtn {
    border: 1px solid gray;
    height: 70px;
}

#inputVal {
    width: 90%;
    padding: 10px;
    overflow-y: auto;
}

#inputVal div {
    border: none
}

#sendContentBtn {
    width: 10%;
}